68 Classifieds Forums

Change Template on Index page for users

This is a discussion on Change Template on Index page for users within the v4 Questions & Support forums, part of the Help & Support category; I don't want the "change template" button to appear for the users.... How is this fixed? Thanks......


Go Back   68 Classifieds Forums > Help & Support > v4 Questions & Support

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-14-2008, 05:34 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Exclamation Change Template on Index page for users

I don't want the "change template" button to appear for the users....

How is this fixed?

Thanks...

__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer
Reply With Quote
  #2  
Old 03-14-2008, 05:45 PM
cwp's Avatar
cwp cwp is offline
Senior Member
 
Join Date: Jun 2007
Posts: 297
Rep Power: 14
cwp is a jewel in the rough
Default

Where is this shown? I don't see it on the demo.. http://demo.68classifieds.com/

My guess would be to just delete it from the template, but I don't know where its at, otherwise I'd tell you about what template it is.
__________________
Version 4.0.3 Developer
Reply With Quote
  #3  
Old 03-14-2008, 10:05 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Default

It is in the purple template.....

See image...

It is shown bottom, left.

From that button you can switch back and forth between templates...even users can do this. I don't want this to happen.


How do I fix please?
Attached Images
File Type: jpg Template_Button.JPG (76.4 KB, 9 views)
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer
Reply With Quote
  #4  
Old 03-14-2008, 10:39 PM
Mike-N-Tosh's Avatar
Moderator
 
Join Date: Jan 2007
Posts: 990
Rep Power: 30
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

Just delete that part around line 98
PHP Code:
<div id="bottomnav">
   {
list_templates}
</
div
-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8, 4.1b3

Templates for sale | 68 Classifieds Customizations | My blog on 68
Web Hosting | Web Design & Development
I am not a 68C employee, just a user and try to help out
Reply With Quote
  #5  
Old 03-14-2008, 11:19 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Default

Thanks Mike!!!
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer
Reply With Quote
  #6  
Old 03-14-2008, 11:58 PM
Maffo's Avatar
The Master
 
Join Date: Mar 2006
Location: British in Argentina
Posts: 1,399
Rep Power: 41
Maffo is a jewel in the rough
Default

A better way to do it is to surround the piece of code with this

PHP Code:
{if $smarty.session.userlevel==1}{list_templates} {/if} 
That way only you will see and you can flick between the templates but your users cant
__________________
Super Mod v4 Is out and ready for download. DEMO
Purchase V4 Super Mod BETA at Reduced Price

Visit Me @ Classified-Sofware.co.uk

**Important** - All modules with the exceptions of the Bulk Upload System will be removed from my modshop on Tuesday September 30th. If you require a module you must get it before that date.
Reply With Quote
  #7  
Old 03-15-2008, 07:30 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Default

Code:
 
        {if $smarty.session.userlevel==1}
             {list_templates}
        </div>
        {if}
Ok...so here's the code as per Maffo...

It draws a blank page.

__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer

Last edited by Soleiltan; 03-15-2008 at 08:05 PM.
Reply With Quote
  #8  
Old 03-15-2008, 08:06 PM
cwp's Avatar
cwp cwp is offline
Senior Member
 
Join Date: Jun 2007
Posts: 297
Rep Power: 14
cwp is a jewel in the rough
Default

I noticed you have " " around your "1" and maffo doesn't. Try it without the " "
__________________
Version 4.0.3 Developer
Reply With Quote
  #9  
Old 03-15-2008, 08:15 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Default

Yes...I added the quotes around the 1, moved around the code....still doesn't work.
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer
Reply With Quote
  #10  
Old 03-15-2008, 08:23 PM
Soleiltan's Avatar
Senior Member
 
Join Date: Jan 2008
Posts: 124
Rep Power: 6
Soleiltan is on a distinguished road
Default

Figured it out...uh, duh....

Here's the corrected code intermingling Mike's reference and Maffo's Mod.

Code:
       <div id="bottomnav">
             {if $smarty.session.userlevel==1}{list_templates}
        </div>                                                  
        {/if}
__________________
~~ Lorren

Any advice is always appreciated.

v 3.1.10 Developer; v 4 Developer
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding help needed to change look of "choose an ad package" page. (Will Pay) Greg H v3.1 Modules & Modifications 0 01-28-2008 10:25 PM
index page Jessej v3.0 Questions & Support 1 01-22-2008 09:40 AM
Getting Google To Re-Index A Page After Title Change? bgordon Site Marketing 9 05-15-2007 01:04 AM
Want To Change Page Background Color tripper HTML, CSS, and Design Help 3 05-01-2007 05:35 PM
Change template layout objelland v3.1 Questions & Support 5 12-15-2006 09:16 AM


All times are GMT -4. The time now is 06:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22