Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Feb 2016, 19:34
hazem_aliraqi's Avatar
hazem_aliraqi hazem_aliraqi is offline
 
Join Date: Oct 2010
Real name: Hazim M
Get User Id in Media Gallery

Get User Id in Media Gallery



the next page like page 2



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

the mod in this thread


https://www.vbulletin.org/forum/show...hreadid=319444


the query in media.php


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


where is the problem ?
Reply With Quote
  #2  
Old 11 Feb 2016, 20:03
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
You mean that $userid is literally displayed in the URL?
It's because the variable is not being escaped in the construct_page_nav function.

This should work:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 11 Feb 2016, 22:13
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
You are seeing that because you've got that part of the string in single quotes, if you put it in double quotes you would get the id showing correctly.
Reply With Quote
  #4  
Old 13 Feb 2016, 10:15
hazem_aliraqi's Avatar
hazem_aliraqi hazem_aliraqi is offline
 
Join Date: Oct 2010
Real name: Hazim M
Originally Posted by Dave View Post
You mean that $userid is literally displayed in the URL?
It's because the variable is not being escaped in the construct_page_nav function.

This should work:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


It works successfully

thank you Dave
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add-On Releases Media Block for DnP Instant! Musicbox - Display the fun media list anywhere ! silveryhat vBulletin 3.8 Add-ons 2 19 Jan 2011 14:12
Add-On Releases DJ's AME (Auto Media Embedding) XML Media Definitions (Third Time's the Charm) Digital Jedi Modification Graveyard 828 10 Mar 2010 06:45



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 18:10.

Layout Options | Width: Wide Color: