Browsing this Thread:   1 Anonymous Users




« 1 (2)


Re: Help by modify a new addlisting function
#6
Webmaster
Webmaster


See User information
What about the classifieds_new.html file, I would also need it.
I already have the new.php file if you want to take it offline.

John

Posted on: 2011/3/9 18:29
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Help by modify a new addlisting function
#5
Quite a regular
Quite a regular


See User information
Hello John,

attached the link for download me new.php

http://bodyaufbau.de/new.zip

please modify the new php for me

click the user on the category name ( without sub-category
) then open the addlisting.php

click the user on the category name ( with sub-category ) then open first the sub-category ) then the second click the addlisting.php

I will no longer use the button for create a classified.

the user to directly create when you click on the category name.

Thanks for you help



Posted on: 2011/3/9 9:21
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Help by modify a new addlisting function
#4
Webmaster
Webmaster


See User information
sorry again for the delay, been real busy. I think you should send me a copy of your newpage.php and the template and I will get it working for you over the weekend.

Thanks,

John

Posted on: 2011/2/18 7:36
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Help by modify a new addlisting function
#3
Quite a regular
Quite a regular


See User information
hello john,

thanks for you help,

my problem ist not a seperate page, i make a new index.php this works fine. the name from my page is new.php

i like make a new function in my new.php

i will make a new add function, the user make one click on the Categorie Name and then open the add windows.

i will not use a button add anounce, the add annouce windows must open by click on the categorie name.... ?

my problem is the under categorie, i can not make a function for the under categorie..

i change the link in this:

$subcategories .= "<a href="".XOOPS_URL."/modules/$mydirname/addlisting.php?cid=".$ele['cid']."">".$chtitle."</a>";

then i can click on the categorie name and the windows open for add listing thats works fine, but i have a under categorie, in the categorie name, then should open first the under categorie and the second click of the under categorie name open the addlisting function.

you can me understanding ?

Thanks for help



Posted on: 2011/2/3 5:13
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Help by modify a new addlisting function
#2
Webmaster
Webmaster


See User information
Sorry I have not been around for a while.
I do not really understand, but it looks like you are trying to create a different page that is similar to the index page. If this is what you are doing the easiest way would be to start with the index page. So make copies of index.php and templates/index.html and rename them to your new page name. Around line 41 of index.php change this line:

$GLOBALS['xoopsOption']['template_main'] = "".$mydirname."_index.html";

the "".$mydirname."_index.html" part change index.html to whatever you renamed it.

then go to xoops_version.php around line 44 and find these lines:

$modversion['templates'][11]['file'] = "".$mydirname."_modify.html";
$modversion['templates'][11]['description'] = '';

AFTER them add this:

$modversion['templates'][12]['file'] = "".$mydirname."_YOUR_NEW_NAME.html";
$modversion['templates'][12]['description'] = '';

Then you would need to update the module.

Then eliminate what you don't want and you end up with what you do want.


Hope that helps,

John

Posted on: 2011/1/29 8:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Help by modify a new addlisting function
#1
Quite a regular
Quite a regular


See User information
Hello John,

i make a new addlisting funktion for my classifieds, i need you help.

i need a If funktion for this function in the index.php


i will like modify this:

if ($space>0) {
                    
$subcategories .= '<br />';
                }
                
$subcategories .= "<a href="".XOOPS_URL."/modules/$mydirname/catview.php?cid=".$ele['cid']."">".$chtitle."</a>";


in this function, but does not work:


if ($space>0) {
                    
$subcategories .= '<br />';
                }

if (
$infercategories){

$subcategories .= "<a href="".XOOPS_URL."/modules/$mydirname/catview.php?cid=".$ele['cid']."">".$chtitle."</a>";


} else {


$subcategories .= "<a href="".XOOPS_URL."/modules/$mydirname/addlisting.php?cid=".$ele['cid']."">".$chtitle."</a>";


}



I make a categorie list, who you can direct click on the Categorie Name, open the add Classified windows.

but the script previously should first check of exist a infercategories.

gives a infercategories, Then It should not directly open the add Classified window, but only the infercategories, and then the add classified window.

you understand me

Thanks for help

you can test a example on my webpage, you must login before you testing

http://www.thueringen-anzeigenmarkt.de/modules/classifieds/new.php


The IF Function works not by me, i need a other if funktion... you can help me

yery thanks


Posted on: 2011/1/19 2:47
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top




« 1 (2)



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
 
Main Menu
 
Who's Online
4 user(s) are online (3 user(s) are browsing Forum)

Members: 0
Guests: 4

more...
 
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: $25.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $25.00