1
vimana
Re: Simplified URLs Hack with title in url
  • 2007/12/19 19:06

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


Sorry for my english

I noticed that with XOOPS if i change an url adding at the end &some_word, the link works anyway

for example
scrivere questo indirizzo:
writing:
http://www.beverfood.com/v2/modules/wordbook/entry.php?entryID=293

It's the same of

http://www.beverfood.com/v2/modules/wordbook/entry.php?entryID=293&ACQUA%20MINIMAMENTE%20MINERALIZZATA


or using semplified url

http://www.beverfood.com/v2/wordbook+entry.entryID+293.htm

It'
s the same of

http
://www.beverfood.com/v2/wordbook+entry.entryID+293+ACQUA+MINIMAMENTE+MINERALIZZATA.htm


So i changed some templates of some modules adding at the link of an entry &<{$link.title}> for have the title in url too

here some examples:
hack of xdirectory based on the module mylinks:
I have chenged link.html templates
from:
 <
a href="<{$xoops_url}>/modules/adirectory/singlelink.php?cid=<{$link.cid}>&lid=<{$link.id}>"/><{$link.title}></a>
to:
<
a href="<{$xoops_url}>/modules/adirectory/singlelink.php?cid=<{$link.cid}>&lid=<{$link.id}>&<{$link.title}>"/><{$link.title}></a>


I've just added &<{$link.title}> at the end of the link url:
you can see it here:
http://www.beverfood.com/v2/adirectory+viewcat.cid+177.htm
click over any link
example:
http://www.beverfood.com/v2/modules/adirectory/singlelink.php?cid=177&lid=13565&COBIT%20ITALIA


The same thing here:
http://www.beverfood.com/v2/wordbook+category.categoryID+5.htm

wordbook module (examplehttp://www.beverfood.com/v2/modules/wordbook/entry.php?entryID=170&ACIDO%20CITRICO )

templates wb_category.html

from:
<
a href="<{$xoops_url}>/modules/<{$eachentry.dir}>/entry.php?entryID=<{$eachentry.id}> "><{$eachentry.term}></a>
to:

<
a href="<{$xoops_url}>/modules/<{$eachentry.dir}>/entry.php?entryID=<{$eachentry.id}>&<{$eachentry.term}>"><{$eachentry.term}></a>


I've just added &<{$eachentry.term}> (Term title) at the end of the entry's link

Now i have the title in the url but i'm using simplified url hack and it doesn't work:

for example i want to chenge:
http://www.beverfood.com/v2/modules/wordbook/entry.php?entryID=170&ACIDO%20CITRICO

to
http://www.beverfood.com/v2/wordbook+entry.entryID+170+ACIDO+CITRICO.htm

I'm not a php programmer so......
Are there any chances to change simplified_url.php for have + intead of %20?

Sorry for my english
Thanks in advice



2
vimana
Re: media (mp3 & video) Shop
  • 2007/7/1 18:07

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


thanks a lot.
I'll try it, it seems a cool module, maybe if i'll be able (php programming it's not exactly my field) i'll try to make a hack of this module.

Thanks again



3
vimana
media (mp3 & video) Shop
  • 2007/6/29 18:31

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


Does anyone know a video & mp3 (cd - ringtones - loops) store module with streaming and low res preview?

Thanks in advice



4
vimana
Re: wordbook 1.17 rc1
  • 2007/6/27 2:44

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


I tried to download the module here:http://dev.xoops.org/modules/xfmod/project/?lexikon but the rc1 link doesn't work




5
vimana
Re: Cloning a xoops website - changing the XOOPS_ROOT_PATH.
  • 2007/4/4 1:47

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


Thanks man



6
vimana
Cloning a xoops website - changing the XOOPS_ROOT_PATH.
  • 2007/4/3 22:57

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


I'm running a web site www.mydomainname.com/html/ i want to pump up in search engines in a determinate keyword so i was thinking to change XOOPS_ROOT_PATH:
from
www.mydomainname.com/html/
to
www.mydomainname.com/keyword/ or to www.mydomainname.com/html/keyword/

I think i can easy change XOOPS_ROOT_PATH somewhere in mySql db.

I have only a problem I already indicized a lot of pages on majors search engine under the url: www.mydomainname.com/html/modules/url so if change the path from html to keyword i will lose visitors because all the urls change and i've to wait at last 3-4 mounths until search engines will re-indicized new urls.

So i i'm thinking to run a XOOPS clone web site for the beginning.
do anyone know a way to clone a XOOPS site or automatic redict do new urls.
I donno, maybe i can use "find" and "replace" to change in php pages of clone site:
from
XOOPS_ROOT_PATH.
to
XOOPS_ROOT_PATH."/keyword".
but i don't know if i have to change it in all php pages or or just in some pages.

I'm not a php programmer and i don't know well the structure of xoops.
Maybe someone have already cloned a XOOPS web site based on the same sql database and can help me
sorry for my english and thanks in advice
cheers



7
vimana
Re: x-directory hack help
  • 2007/2/20 9:36

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


ok i fixed it
the problem was here :

$sql = "select l.lid, l.cid, l.title,.....bla bla bla 1.submitter

i wrote (one) 1.submitter now i change it in l.submitter and it work

sorry



8
vimana
x-directory hack help
  • 2007/2/20 4:00

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


I'm trying to make an hack of x-directory module.
but i've something wrong.

I'm very bad in php.
I want display the submitter name too so i added some code in .php viewcat.php index.php singlelink.php.


But the propblem is submitter result all the time = 1 (the webmaster :user=1)


where there are the other fields I added :

$sql = "select l.lid, l.cid, l.title,.....bla bla bla 1.submitter

while(list($lid, $cid, $ltitle, $address, ..... bla bla bla $submitter,



$xoopsTpl->append('links', array('id' => $lid, 'cid' => $cid, 'url' => $url, 'rating' => number_format($rating, 2), 'title' => $myts->makeTboxData4Show($ltitle).$new.$pop, 'address' => $myts->makeTboxData4Show($address),
bla bla bla bla .....'submitter' => $submitter, 'submittername' => XoopsUser::getUnameFromId($submitter),

and I've used this code in templates:

Autor <a href='<{$xoops_url}>/userinfo.php?uid=<{$link.submitter}>'><{$link.submittername}>


Yea I was thinking it was working because i was seeing the username and the link it was working. but now another user post but instead of the right user name i've the webmaster name (user=1) and this: a href='<{$xoops_url}>/userinfo.php?uid=<{$link.submitter}>'> result href='<{$xoops_url}>/userinfo.php?uid=1'>.

I've done some tries (i tryed only the link without username) but submitter result all the time == 1 and i checked phpMyAdmin and in the table submitter is == 6

If i check the user page activity it's right

I totaly don't know nothing about php i hope someone can help me. and thanks in advice.

here a .zip it contains php code, template and phpMyAdmin screenshot:http://www.m0t10n.com/submitter.zip

here the page must have result 6 in submiter:
http://www.m0t10n.com/html/modules/clipsdirectory/singlelink.php?cid=164&lid=1458
the code is the same in siglelink.php, viewcat.php nd index.php

sorry for my english too

:pint



9
vimana
Re: Debaser 0.92 installation problem
  • 2006/12/30 21:56

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


Great thanks now it works
and thanks for the module too it's fantastic

i think maybe it's better upgrade the file at sourceforge.net

cheers



10
vimana
Debaser 0.92 installation problem
  • 2006/12/30 21:40

  • vimana

  • Just popping in

  • Posts: 20

  • Since: 2005/1/26


i downloaded debaser 0.92_frankblack. When I try to install it i have this message:

Installing debaser

Invalid default value for 'added'

Unable to install debaser. Error(s):


and i found this in debug mode:

CREATE TABLE xoops_debaser_files xfid int(11NOT NULL auto_incrementfilename text NOT NULLadded int(10NOT NULL default ''title varchar(50NOT NULL default ''artist varchar(50NOT NULL default ''album varchar(50NOT NULL default ''year int(4NOT NULL default ''addinfo text NOT NULL default ''track int(3NOT NULL default ''genre varchar(50NOT NULL default ''length varchar(50NOT NULL default ''bitrate varchar(50NOT NULL default ''link varchar(100NOT NULL default ''frequence varchar(50NOT NULL default ''rating double(6,4NOT NULL default '0.0000'votes int(11NOT NULL default '0'approved int(1NOT NULL default '0'fileext varchar(4NOT NULL default ''weight int(10NOT NULL default '0'hits int(11unsigned NOT NULL default '0'views int(11unsigned NOT NULL default '0'PRIMARY KEY (xfid) ) TYPE=MyISAM
Error number
1067
Error message
Invalid default value for 'added'


I'm running XOOPS 2.0.16
some time ago I installed debaser on an old site and i didn't have any problem.

I'm not very good in php but maybe someone can help me.
Thanks




TopTop
(1) 2 »



Login

Who's Online

232 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits