(1) 2 3 »


hack needed?
#1
Quite a regular
Quite a regular


See User information
Hi,

I'm working on some changes for the news section. I've only been messing with my template but there's one thing wich i can't change from there (or thats wat I think).

Inside my template, hardly any different from default atm, I want to change the following: The table under the newsitem with the view option (thread/nest/flat) and post comment button.

I know where it is in my template, commentsnav (in news_article)

<div style="text-align: center; padding: 3px;
margin:3px;"
>
<{
$commentsnav}>
<!-- <{
$lang_notice}> -->
</
div>

But I have no idea where it's defined. I hope someone could be so kind to tell me where to go so i can make my hack! (mayby i'm wrong and it doesn't even require a hack).

ps. Does anyone know a decent program to search within multiple .php files at once?

Posted on: 2003/12/14 18:26
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#2


See User information
What do you want to do with it?

If you want to disable the comments from showing that, then go to your news module and click on preferences, there you will see an option to disable comments.

Posted on: 2003/12/14 18:55
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#3
Quite a regular
Quite a regular


See User information
I don't want to disable the comments. I want to only want to edit the part where a user can change commentview to threaded, nested or flat. I was thinking about deleting that entire table and relocate the "post comment" button. But I just need to know where <{$commentsnav}> is defined so i can at least make some changes.

Posted on: 2003/12/14 19:39
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#4
Just popping in
Just popping in


See User information
go to modules/system/templates/

and check:

system_comment.html

Posted on: 2003/12/14 20:16
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#5
Quite a regular
Quite a regular


See User information
That is not wat i'm looking for. That template is for the comments itself! (or atleast the buttons for the comments).

Does anyone know wat i'm talking about? I have no idea how else to explain it

Posted on: 2003/12/14 22:31
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#6
Just can't stay away
Just can't stay away


See User information
It's defined in the file xoops-root/include/comment_view.php. When you change this it's changed sitewide.
You can also look at the template setting in admin/general preferences/templates. Before you change the default template, you must make a clone.

Aloha

Posted on: 2003/12/15 1:04
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#7
Quite a regular
Quite a regular


See User information
Ty, I actually found it there to, but the strange thing is, it seems to make up the links behind the buttons which are displayed in a comment. So mayby i was wrong about <{$commentsnav}>. Mayby I have to look somewhere else.

I don't need most of those buttons in the table (see previous posts) I only need to know how te create a new "post comment buttons, so I can place it somewhere else. Mayby someone could help me with that.

Posted on: 2003/12/15 7:33
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#8
Theme Designer
Theme Designer


See User information
As svaha said before, this is located in /include/comments_view.php. The link for "post comment" uses an "onClick" statement on an input button I think.

Posted on: 2003/12/15 11:26
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#9
Quite a regular
Quite a regular


See User information
ok, thank you for the replys, i'll take another look at comments_view.php when i'm home from work :(

Posted on: 2003/12/15 12:46
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 


Re: hack needed?
#10
Just popping in
Just popping in


See User information
Has anyone found out how to do this?

Posted on: 2006/3/10 16:47
 Top  Twitter  Facebook    Linkedin  Del.icio.us  Digg  Reddit  Mr. Wong 




(1) 2 3 »



You cannot 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 files.
You cannot get print page.

[Advanced Search]


Login
Username:

Password:

Remember me



Lost Password?

Register now!
Search
Recent Posts
Donat-O-Meter
Make donations with PayPal!
Stats
Goal: $15.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Recent forum posts
Recent Comments
About us
Learn
Use
Develop GitHub
Contribute
Connect
Terms of Use | Privacy Policy | Hosted by Arvixe Hosting | RSS 2.0 Button