Support Forums

Seller store link in userindex.tpl

This is a discussion on Seller store link in userindex.tpl within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi all, Sorry yet another question ! In the userindex.tpl file I want to show the seller store mod. hover ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 01-30-2010, 06:21 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default Seller store link in userindex.tpl

Hi all,

Sorry yet another question !

In the userindex.tpl file I want to show the seller store mod. hover I only want to show it to business / trade customers.

I have changed the newsletter ($newsletter} checkbox, as a means for customers to click to confirm they are business customers, I was then going to do something like

{if $newsletter}
then put the info here i want to show up
{/if}

but it does not seem to work, I have done a debug and $newsletter isnt there. the only thing i can see is {$pmon}

any thoughts on helping with my dodgy attempt at coding (apart from me giving up )

Thanks in advance

jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 01-30-2010, 07:05 AM   #2
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

Issue resolved !!!
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 01-30-2010, 07:42 AM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

How about publishing what you did as others may wish to do it.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 01-30-2010, 08:17 AM   #4
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

Quote:
Originally Posted by jason1971
Hi all,

Sorry yet another question !

In the userindex.tpl file I want to show the seller store mod. hover I only want to show it to business / trade customers.

I have changed the newsletter ($newsletter} checkbox, as a means for customers to click to confirm they are business customers, I was then going to do something like

{if $newsletter}
then put the info here i want to show up
{/if}

but it does not seem to work, I have done a debug and $newsletter isnt there. the only thing i can see is {$pmon}

any thoughts on helping with my dodgy attempt at coding (apart from me giving up )

Thanks in advance

jason
NOT RESOLVED !!!

I thought i had cracked it because I moved
{if $newsletter}
then put the info here i want to show up
{/if}


To useraccountmodify.tpl instread of userindex.tpl

The idea is when businesses register if they tick the box to confirm they are a business user. The info I want to show. shows up in useraccountmodify.tpl (fantastic as I wanted) however the problem lies in, if they un-tick the box at any later stage or if i untick it from admin side the info STILL remains. Uuuurgggghhhh

anybody any thoughts
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 01-30-2010, 08:22 AM   #5
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

Another problem I have noticed is when I log into my account on the website >> go to My Account >> Click on Modify Your Account.

When there if I un-tick the newsletter checkbox, and save new changes. the un-ticked box remains ticked after being saved
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 01-30-2010, 09:16 AM   #6
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Can't really say as you didn't actually provide the code you used to change the newsletter checkbox. However, as the newsletter is for that specific purpose, changing that field in just the template will surely cause errors since the field is connected to the database/module/xxx.php file(s).

My suggestion would be that you use one of the built in extra REGISTRATION fields to identify a business user.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 01-31-2010, 02:16 AM   #7
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

the only way i have changed it was to go in to languages / english and change it there from newsletter to business... no other changes (i wouldnt know how )
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 01-31-2010, 10:53 PM   #8
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

Problem resolved, as pointed out using newsletter could cause complications, so I set up a new registration feild and did

{if}
{$entry3}
{/if}

i cant believe it, it worked !
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 02-01-2010, 04:53 AM   #9
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

It worked because you followed Mike's advice - LOL
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add an RSS Feed link to your seller store Mike-N-Tosh Modules / Plugins / Modifications 0 01-04-2009 05:19 PM
Seller Store Founder & CEO Modules / Plugins / Modifications 2 06-04-2008 08:13 AM
Seller Store ? Unregistered Pre Sales Questions 2 02-06-2007 08:47 AM


All times are GMT -4. The time now is 08:05 AM.


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