The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hi was following the article paginator in admin cp,
and with only -2 views since yester kinda doubt a response is appearing there. Paginate Admin CP Results so if you think its the wrong place to start a topic, well in a perfect world articles responses was feedback only not support, and support with scripts goes in support forum ![]() anyway the problem is this the link from the pages appear to be fine when running but when you click if loads nothing/blank screen which ofcourse is becourse it cannot find the goto location. my initial goto location is PHP Code:
PHP Code:
in run mode it looks like this http://localhost/forums/admincp/sh2.php?do=Find&page=2 and ofcourse it can easy find ?do=Find but the &page2 is the problem, im sure i need to add this somewhere, but not how and neither articles on this clearify this.. suggestions ? ![]() EDIT 2 : modified the link a little, but still not allowed to use &page# Code:
$pagenav .= "<a href='sh2.php?$session[sessionurl]do=Find&page=$thispage'>".$thispage."</a>,"; |
#2
|
||||
|
||||
![]()
The name of the variable that is used in the article is "pagenumber", not "page".
|
#3
|
||||
|
||||
![]()
hmm okay,, time for a little code i gues
1) it didnt pay attention on the varible changed that in the link.. PHP Code:
Notice ONLY reason i got dublicated link it besource im trying different things out im also suspecting that input->clean array to have a wrong syntax but dont know the correct syntax for it, can only compared to others that work. |
#4
|
||||
|
||||
![]()
Okay, let's start at that insecure query there. It is vulnerable to SQL injection. You should read SirAdrian's article called "Create Secure Mods". It's all good and well that you escape HTML (it's not needed, by the way, it is only needed after fetching from the database/displaying it).
|
#5
|
||||
|
||||
![]() Quote:
Dont get it, well i understand what it does, great. But i have no clue of placement of $db->escape_string() cant i just go with $db->query_read_slave() ? or is it a misleading name! Edit 2 : okay $db->query_read_slave() dosent work, it removes all links. = dosent count and the same with $db->escape_string() = dosent count either PHP Code:
giving up on this. |
#6
|
||||
|
||||
![]() PHP Code:
|
#7
|
||||
|
||||
![]()
okay this works thank you..
PHP Code:
![]() Link generated is PHP Code:
PHP Code:
should i remove all the " &pagenumber=$thispage" alltogether and attempt getting the page number with _get or _request perhaps instaed. ? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|