TinyPortal

Development => Support => Topic started by: vdubbia on April 11, 2009, 07:17:15 PM

Title: My themebox is not working for no apparent reason...
Post by: vdubbia on April 11, 2009, 07:17:15 PM
All of a sudden my themebox is not allowing to change themes.  I have not modded any permissions, etc.  What could be causing this?

site is here: http://tinyurl.com/daepgb
Title: Re: My themebox is not working for no apparent reason...
Post by: ZarPrime on April 11, 2009, 07:35:16 PM
vdubbia,

What did you do just before the theme selector stopped working?  Any new SMF Mods added?  Anything else you changed?

Look in Admin --> Configuration --> Themes and Layout and tell us whether the box is checked to "Allow members to select their own themes."

ZarPrime
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 11, 2009, 10:22:14 PM
I unchecked that box, then rechecked it thinking it might reset, but no luck.

I didn't do anything to the forum, other than add the DSv4 theme to the themebox mix.  The thing is the thembox was working for multiple days after adding the DSv4 theme, so I don't think that is the cause as it worked perfectly.

can't figure this out... any recommendations?
Title: Re: My themebox is not working for no apparent reason...
Post by: ZarPrime on April 11, 2009, 11:19:03 PM
So, are you saying its checked or unchecked?  If it's unchecked, check it and then click save, and then see if the theme selector works.  If it still won't stay checked, do a hard refresh of your site on that page (ctrl-F5) and then try it again and let us know.

ZarPrime
Title: Re: My themebox is not working for no apparent reason...
Post by: Renegd98 on April 12, 2009, 12:20:16 AM
If he is using Beta 3 there is a problem with editing articles I believe that clears the themes that are set to show in the theme box.
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 12, 2009, 12:46:23 AM
It was checked allowing users to choose themes.  I unchecked it, then re-checked it thinking it might reset the option.  I am using TP 0.9.8 with SMF 1.0.8.
Title: Re: My themebox is not working for no apparent reason...
Post by: IchBin on April 12, 2009, 01:41:31 AM
What are the ID's on some of your themes? You should be able to hit a theme directly by choosing the URL. http://yoursite.com/index.php?theme=1

1 being the ID of the default core theme. You can get the id's for other themes by viewing the links in the admin panel.
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 12, 2009, 01:56:20 AM
Quote from: IchBin™ on April 12, 2009, 01:41:31 AM
What are the ID's on some of your themes? You should be able to hit a theme directly by choosing the URL. http://yoursite.com/index.php?theme=1

1 being the ID of the default core theme. You can get the id's for other themes by viewing the links in the admin panel.

I can change the themes manually via the admin panel, it's the themebox on the main forum page that is not working.  When you click 'change' the theme isn't changing.

I am getting this as an error message in IE7 which you should be able to see in the lower right corner if you double click on the exclamation point.

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Ffarm4.static.flickr.com%2F3371%2F3433254554_e8be21fcc2_o.png&hash=9efbda2962c89673e50646b6cbf29380e5574136)
Title: Re: My themebox is not working for no apparent reason...
Post by: IchBin on April 12, 2009, 02:02:32 AM
You did not answer my question. I'm telling you that it looks like you've got more of a problem than just the javascript error. If you have indeed changed the setting for users to be able to select their own theme, then anyone should be able to change a theme by hitting the URL I posted above. Which is why I asked you for some of the ID's of your theme, so we can check to see if it is possible to change the theme without using the theme changer.
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 12, 2009, 03:00:25 AM
Quote from: IchBinâ„¢ on April 12, 2009, 02:02:32 AM
You did not answer my question. I'm telling you that it looks like you've got more of a problem than just the javascript error. If you have indeed changed the setting for users to be able to select their own theme, then anyone should be able to change a theme by hitting the URL I posted above. Which is why I asked you for some of the ID's of your theme, so we can check to see if it is possible to change the theme without using the theme changer.

ahh.. okay I misunderstood... hold on...
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 12, 2009, 03:07:36 AM
theme numbers are:

21
24
25
27

all viewable directly via the method you describe.
Title: Re: My themebox is not working for no apparent reason...
Post by: IchBin on April 12, 2009, 03:30:08 AM
At this point I can only guess that one of your other mods or something is conflicting with this. The code for TP is all there. But there could be other javascript functions and stuff that are causing this problem. I can only suggest you either remove all other mods and start testing things by making sure TP works without any mods. Then installing one mod at a time making sure TP works properly each time. That or setup a test install and do the same thing.
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 12, 2009, 03:36:31 AM
what's interesting is that if I put the themebox in positions 0-70 in the block manager it will work on the forum.  Any position below >=80 and it doesn't work... any ideas?
Title: Re: My themebox is not working for no apparent reason...
Post by: IchBin on April 12, 2009, 03:37:49 AM
That would most likely mean that one of the blocks above it are conflicting with it. Try disabling the left blocks. Enable one by one until you see which one causes the problem
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 12, 2009, 03:41:27 AM
I think it might be caused by the new paypal button I added... I just turned off that block and it looks like it's working as it should... paypal changed their button script, so I bet that's it.
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 12, 2009, 03:43:39 AM
here's the button code:

<center><form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input name="cmd" type="hidden" value="_s-xclick" /> <input name="hosted_button_id" type="hidden" value="XXXXXXXX" /> <input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" type="image" /> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /> </center>

Title: Re: My themebox is not working for no apparent reason...
Post by: IchBin on April 12, 2009, 03:55:59 AM
Its missing the closing </form> tag. Try this code instead:
<center>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="cmd" type="hidden" value="_s-xclick" />
<input name="hosted_button_id" type="hidden" value="XXXXXXXX" />
<input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" type="image" />
<img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" />
</form>
</center>
Title: Re: My themebox is not working for no apparent reason...
Post by: vdubbia on April 12, 2009, 04:00:12 AM
bah... can't believe I didn't see that!

thanks! :up:
Title: Re: My themebox is not working for no apparent reason...
Post by: ZarPrime on April 12, 2009, 05:20:11 AM
OK, good. It looks like it's working now, so I will mark this topic solved. :up:

ZarPrime
Title: Re: My themebox is not working for no apparent reason...
Post by: G6Cad on April 12, 2009, 09:27:32 AM
This has been adressed before by me actually, had the same issues and i think i told that it was the paypal code. I cant remember to 100% if i did, but i emaild Paypal about their code generator, and got a reply that they have fixed that issue*