hi,I have made alinks for drupal7.x.

I tested it in drupal7.8, it worked ok in drupal7.8

who may review it?

please find it in

http://drupalcode.org/project/alinks.git/commit/90eb63e

thanks!

CommentFileSizeAuthor
#13 1317616.patch2.35 KBxandeadx
#12 1317616.patch1.72 KBxandeadx
#5 alinks.jpg39.83 KBAurochs

Comments

joebachana’s picture

posted the D7 version on 10/14, did you work on this independently and not notice this? Seems like one of us wasted work effort.

chinajason’s picture

sorry,I didn't notice it.
can you maintein it with me?
can you add my msn?

arnieswap’s picture

Thanks. I will be testing it and will file reports.

Aurochs’s picture

@chinajason - pls look at the screen from my notepad++ with utf-8 encoding ( i tried other editors and other encodings). I think there are some chinese characters or punctuation? some encoding mistake?

i receive tons of mistakes with the released 7-1.1

http://imageshack.us/photo/my-images/707/alinksu.jpg

Aurochs’s picture

StatusFileSize
new39.83 KB

the screen

Aurochs’s picture

I tried the sandbox by joebacjana and have foll

Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).
Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).
Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).
Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).
Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).
Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).
Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).
Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).
Notice: Undefined index: body в функции alinks_node_view() (строка 131 в файле /var/www/gamepart.org.ua/sites/all/modules/alinks/alinks.module).

with 7.x -1.1 i had simlar problem but another index.

gratefulsk’s picture

The 7.x-1.x-dev version by joebachana is working for me on Drupal 7. I couldn't get the releases by chinajason to work for me.

almamun’s picture

Working fine for me with utf-8 characters on a multilingual site ):

Only getting an error (whether I set it -1 or 50)
Notice: Undefined offset: 0 in alinks_node_view() (line 134 of /path-to-drupal/sites/all/modules/alinks/alinks.module)

 

almamun
..................................
Dinajpur- My District Portal
Rangpur-Another Local Portal (Drupal Powered)
Rangpur News-Local News Site (Drupal Powered)

Hanscraft’s picture

I've noticed that it does that if there is no body text in a content type that Alinks refers to. As soon as I paste SOMETHING in there, the error goes away.

thejamesjones’s picture

I am having this same error...

Notice: Undefined index: body in alinks_node_view() (line 134 of /var/www/html/caldwell/sites/all/modules/alinks/alinks.module).

I have tried replacing the the body with text, created a new content type, changed the alinks limit and node types.

Is there anyway to disable this error from showing all together?

thejamesjones’s picture

The module appears to be running on all content types, even if you don't have them selected. I am seeing the aforementioned error on pages that do not have alinks configured, additionally these pages do not have any content in the body field. Or the content is html/php code and not textual in nature.

xandeadx’s picture

StatusFileSize
new1.72 KB

fix alinks_node_view()

xandeadx’s picture

StatusFileSize
new2.35 KB

fix alinks_node_view() + alinks_get_strings()

fubarhouse’s picture

Hey guys, trying to get to this to work also,
Note that I have tried the above patches with no success or change.
I have also tried the most recent version of the file which was in fact updated today.

Error Message
Notice: Undefined index: body in alinks_node_view() (line 134 of /mounted-storage/home149/sub005/sc45553-OKUX/savage-union.com.au/sites/all/modules/alinks/alinks.module).

Line of code
134: $node->content['body'][0]['#markup'] = alinks_make_links($node->content['body'][0]['#markup'], $words);

Live version
A live version of this error message can be found on my website.
Please note all the text visible on this page is coming from a custom field, "field_biography" and alinks has been established to create every work in this area a link to another content page.

lalit774’s picture

hi,

#14
File alinks.module
Line No 134


 if (is_array($words) && !empty($words)){

replace with

 if (is_array($words) && !empty($words) && isset($node->content['body'][0]['#markup'])){


you should not get above error.

niklp’s picture

The problem here is that the module specifically targets only the body field (named as such) in each content type. As of D7, this really needs to be changed so that any textarea field on any content entity will have the alinks applied to them. This is a bit of work, it appears... :/

VictorMYeste’s picture

I have the same error. NikLP is right. Anyone with a path to this problem?

fehin’s picture

I'm getting this error
Notice: Undefined variable: alink in alinks_get_strings() (line 153 of sites/all/modules/alinks/alinks.module).

fehin’s picture

Tried the patch in #13. Alink doesn't do anything to my texts.

fehin’s picture

Issue summary: View changes

I tested it in drupal7.8

greg boggs’s picture

Assigned: chinajason » greg boggs
Issue summary: View changes
Status: Needs review » Needs work
greg boggs’s picture

Status: Needs work » Closed (fixed)