[MODDB] Prime Quick Style - Switch styles from any page

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
Locked
Mr.Victor
Registered User
Posts: 91
Joined: Tue Oct 23, 2007 8:17 pm

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by Mr.Victor » Sat Jul 11, 2009 1:05 am

ty sir! :mrgreen:

User avatar
1234homie
Registered User
Posts: 439
Joined: Fri Sep 26, 2008 3:17 pm

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by 1234homie » Mon Jul 27, 2009 6:05 pm

HI I have the problem with that mod. Alvays when I switch style it redirect me to index.php page. How repair it?

User avatar
Stucker™
Registered User
Posts: 7
Joined: Fri Jul 17, 2009 5:38 am

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by Stucker™ » Thu Jul 30, 2009 3:46 am

:D Excellent MOD!

;) Congratulations Primehalo!

:) Thanks for this MOD.

:arrow: Installed and Working (On footer): http://www.sebrasil.com.br/
Sorry for my bad english!

lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by lovelysummer » Thu Aug 20, 2009 12:29 am

Sir, I got a problem !

When a user was banned, and if he login, the user will got the following in the header of the index page:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prime_quick_style.php on line 107: Undefined index: is_registered
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1041: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3255)
Warning: Cannot modify header information - headers already sent by (output started at /home/mycic0/public_html/forum/includes/functions.php:3255) in /home/mycic0/public_html/forum/includes/functions.php on line 3923

Warning: Cannot modify header information - headers already sent by (output started at /home/mycic0/public_html/forum/includes/functions.php:3255) in /home/mycic0/public_html/forum/includes/functions.php on line 3925

Warning: Cannot modify header information - headers already sent by (output started at /home/mycic0/public_html/forum/includes/functions.php:3255) in /home/mycic0/public_html/forum/includes/functions.php on line 3926

Warning: Cannot modify header information - headers already sent by (output started at /home/mycic0/public_html/forum/includes/functions.php:3255) in /home/mycic0/public_html/forum/includes/functions.php on line 3927

How to solve this , Sir !

Thank YOu.
Last edited by lovelysummer on Thu Aug 20, 2009 2:38 am, edited 1 time in total.

Dem0n_Hunter
Registered User
Posts: 103
Joined: Wed Aug 05, 2009 9:12 am

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by Dem0n_Hunter » Thu Aug 20, 2009 2:07 am

Hi, this is my first time visiting the development part of the MOD DB and I"m not familiar with the rules. I just wanted to know if it is ok to use this in a live forum? or it's just at our own risk?
and just one more thing to ask. is there a validated version of this MOD? cuz i couldn't find one so i thought there might have been one and I've missed it. thx

User avatar
primehalo
Former Team Member
Posts: 2848
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by primehalo » Thu Aug 20, 2009 8:35 am

lovelysummer wrote:Sir, I got a problem !

When a user was banned, and if he login, the user will got the following in the header of the index page:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/prime_quick_style.php on line 107: Undefined index: is_registered
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1041: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3255)
Warning: Cannot modify header information - headers already sent by (output started at /home/mycic0/public_html/forum/includes/functions.php:3255) in /home/mycic0/public_html/forum/includes/functions.php on line 3923

Warning: Cannot modify header information - headers already sent by (output started at /home/mycic0/public_html/forum/includes/functions.php:3255) in /home/mycic0/public_html/forum/includes/functions.php on line 3925

Warning: Cannot modify header information - headers already sent by (output started at /home/mycic0/public_html/forum/includes/functions.php:3255) in /home/mycic0/public_html/forum/includes/functions.php on line 3926

Warning: Cannot modify header information - headers already sent by (output started at /home/mycic0/public_html/forum/includes/functions.php:3255) in /home/mycic0/public_html/forum/includes/functions.php on line 3927

How to solve this , Sir !

Thank YOu.
Just released an update which should fix this.
Dem0n_Hunter wrote:Hi, this is my first time visiting the development part of the MOD DB and I"m not familiar with the rules. I just wanted to know if it is ok to use this in a live forum? or it's just at our own risk?
and just one more thing to ask. is there a validated version of this MOD? cuz i couldn't find one so i thought there might have been one and I've missed it. thx
I use it in my live forum, but it is use at your own risk. I don't remember if there is a validated one or not.
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
leviatan21
Registered User
Posts: 2663
Joined: Fri Aug 10, 2007 7:22 am
Location: Buenos Aires, Argentina
Name: Gabriel

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by leviatan21 » Thu Aug 20, 2009 3:59 pm

primehalo wrote:Just released an update which should fix this.
Well-done ;) !

Code: Select all

			if (PRIME_QUICK_STYLE_ENABLED && PRIME_QUICK_STYLE_GUEST && $user->data['user_id'] == ANONYMOUS)	// $user->data['is_registered'] may not be set at this point, such as if the user was banned
Excuse me for my poor English, I speak Spanish. | Image phpBB en Español

User avatar
phreakwars
Registered User
Posts: 239
Joined: Thu Feb 22, 2007 4:57 am
Location: Polaris Industries

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by phreakwars » Thu Aug 20, 2009 6:51 pm

Dem0n_Hunter wrote:Hi, this is my first time visiting the development part of the MOD DB and I"m not familiar with the rules. I just wanted to know if it is ok to use this in a live forum? or it's just at our own risk?
and just one more thing to ask. is there a validated version of this MOD? cuz i couldn't find one so i thought there might have been one and I've missed it. thx
I don't think there is a validated one yet, but I use this on my live forum too. I have for a couple years now. Have never had an issue with it. Works great for guest posters as well.

As for the development part of the boards... hang around here alot. You can come up with some great MODS for your board.

If your unsure, just setup a test board of your own at home using Xampp.
.
.
MODS by me: Default Topic Icon

lovelysummer
Registered User
Posts: 437
Joined: Fri Mar 20, 2009 1:49 pm

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by lovelysummer » Thu Aug 20, 2009 7:23 pm

Sir ! with your update version, problem solved . :D

Dem0n_Hunter
Registered User
Posts: 103
Joined: Wed Aug 05, 2009 9:12 am

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by Dem0n_Hunter » Thu Aug 20, 2009 11:54 pm

Awesome. thx guys for the info. i'll be using this on my forums I was looking for this for a while. it's a great mod thx

fasko
Registered User
Posts: 185
Joined: Wed Jan 28, 2009 9:49 am

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by fasko » Fri Aug 21, 2009 10:58 am

Thanks :D
Sorry for my english

User avatar
primehalo
Former Team Member
Posts: 2848
Joined: Fri May 06, 2005 5:58 pm
Location: Redding, CA
Contact:

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by primehalo » Tue Sep 01, 2009 10:33 pm

New version released which fixes an SQL injection vulnerability. Please update!
Ken F. Innes IV
My Extensions | My MODs | My Topics | My Site: Absolute Anime
Experience the wonder of Japanese Animation!

User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by tumba25 » Wed Sep 02, 2009 12:20 am

Code: Select all

$sql = 'UPDATE ' . USERS_TABLE . ' SET user_style = ' . $db->sql_escape($style) . ' WHERE user_id = ' . $user->data['user_id'];
Since $style is supposed to be an int you should use intval() instead of $db->sql_escape($style).
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net

User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29253
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by Marshalrusty » Wed Sep 02, 2009 12:44 am

If $style is supposed to be an int, then you should just change:

Code: Select all

($style = request_var('prime_quick_style', '')))
to:

Code: Select all

($style = request_var('prime_quick_style', 0)))
EDIT: Since other things can also be set to that variable, tumba25's change is also necessary.
Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs

User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [RC1] Prime Quick Style - Switch styles from any page

Post by IPB_Refugee » Wed Sep 02, 2009 2:23 am

Regarding the exploit:

Link removed

What exactly do we have to check to be sure that everything is okay?

Okay, I am still the only member with user_type == 3. What else should be checked?

Thank you
Wolfgang
Last edited by tumba25 on Wed Sep 02, 2009 2:37 am, edited 1 time in total.
Reason: Removed the link to the exploit

Locked

Return to “[3.0.x] MODs in Development”